<!DOCTYPE html>
<html>
<head>
<title>行政用人需求管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("demandmanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("demandmanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("demandmanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("demandmanagement:firApprove"))
			<a class="btn btn-primary" @click="firApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;一级审核</a>
			#end
			#if($shiro.hasPermission("demandmanagement:secApprove"))
			<a class="btn btn-primary" @click="secApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;二级审核</a>
			#end
			#if($shiro.hasPermission("demandmanagement:thiApprove"))
			<a class="btn btn-primary" @click="thiApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;三级审核</a>
			#end
			#if($shiro.hasPermission("demandmanagement:fouApprove"))
			<a class="btn btn-primary" @click="fouApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;四级审核</a>
			#end
			#if($shiro.hasPermission("demandmanagement:list"))
			<a class="btn btn-primary" @click="choose"><i class="fa"></i>&nbsp;筛选</a>
			#end
			#if($shiro.hasPermission("demandmanagement:list"))
			<a class="btn btn-primary" @click="selected"><i class="fa"></i>&nbsp;面试</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-1 control-label">结算点</div>
				<div class="col-sm-2">
						<input type="text" class="form-control" readonly="readonly"  @click='popSettlement' v-model="demandManagement.settlementName" placeholder="请选择"/>
					</div>
					<!--<select v-model="demandManagement.settlement" class="form-control">
						<option v-for="settlement in dictList3" :value="settlement.value">{{settlement.label}}</option>
					</select>-->
			   	<div class="col-sm-1 control-label">需求岗位</div>
			   	<div class="col-sm-2">
					<select v-model="demandManagement.demandPost" class="form-control">
						<option v-for="demandPost in dictList2" :value="demandPost.value">{{demandPost.label}}</option>
					</select>
			      <!--<input type="text" class="form-control" v-model="demandManagement.demandPost" placeholder="需求岗位"/>-->
			    </div>

			</div>
				<div class="form-group">

					<div class="col-sm-1 control-label">需求人数</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="demandManagement.demandNumber" placeholder="需求人数"/>
					</div>
			   	<div class="col-sm-1 control-label">申请理由</div>
			   	<div class="col-sm-2">
					<select v-model="demandManagement.applicationReasons" class="form-control">
						<option v-for="applicationReasons in dictList" :value="applicationReasons.value">{{applicationReasons.label}}</option>
					</select>
			    </div>

			</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">性别</div>
					<div class="col-sm-2">
						<label class="radio-inline"><input type="radio" v-model="demandManagement.sex" value="0"/>男</label>
						<label class="radio-inline"><input type="radio" v-model="demandManagement.sex" value="1"/>女</label>

					</div>
			   	<div class="col-sm-1 control-label">最小年龄</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="demandManagement.minAge" placeholder="最小年龄"/>
			    </div>

			</div>

				<div class="form-group">
					<div class="col-sm-1 control-label">最大年龄</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="demandManagement.maxAge" placeholder="最大年龄"/>
					</div>
			   	<div class="col-sm-1 control-label">岗位职责</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="demandManagement.jobResponsibilities" placeholder="岗位职责"/>
			    </div>

			</div>
			<div class="form-group">
			<div class="col-sm-1 control-label">专业需求</div>
			<div class="col-sm-2">
				<input type="text" class="form-control" v-model="demandManagement.professionalSkills" placeholder="专业技能需求"/>
			</div>

				<div class="col-sm-1 control-label">到位日期</div>
				<div class="col-sm-2">
					<input type="text" class="form-control"  v-model="demandManagement.arrivalDate"  placeholder="到位日期"  onchange="arrivalDateChange(this.value)"
						   id="arrivalDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly" />
				</div>
		</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">其他要求</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="demandManagement.otherRequirements" placeholder="其他要求"/>
				</div>

				<div class="col-sm-1 control-label">建议薪酬</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="demandManagement.proposedRemuneration" placeholder="建议薪酬"/>
				</div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">审核</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">审核说明</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="demandManagement.approverNote" placeholder="审核说明"/>

				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="approve" value="通过"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reject" value="拒绝"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>


	<div v-show="showtable1">
		<div class="panel panel-default">
			<div class="panel-heading">筛选结果</div>
			<table id="jqGridTable"></table>
			<div id="jqGridPagerTable"></div>
		</div>
	</div>

</div>

<div id="popSettlement" style="display: none;padding:10px;">
	<table id="popSettlementGrid"></table>
	<div id="popSettlementGridPager"></div>
</div>

<script src="${rc.contextPath}/js/hr/demandmanagement.js?_${date.systemTime}"></script>
</body>
</html>